<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title><?php echo ($mname); ?></title>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <title>jQuery WeUI</title>

    <link rel="stylesheet" href="/movie/web/Public/static/jquery-weui/lib/weui.min.css">
    <link rel="stylesheet" href="/movie/web/Public/static/jquery-weui/css/jquery-weui.css">

    <link rel="stylesheet" href="/movie/web/Public/static/bootstrap/css/bootstrap.min.css">

    <script src="/movie/web/Public/static/jquery-weui/lib/jquery-2.1.4.js"></script>
    <script src="/movie/web/Public/static/jquery-weui/js/jquery-weui.js"></script>

    <script src="/movie/web/Public/static/jquery-weui/js/swiper.js"></script>
    <style>

        .navtab {
            display: -webkit-flex;
            display: flex;
            border: 2px solid #CCCCCC;
        }

        .navtab .item {
            -webkit-flex: 1;
            flex: 1;
            line-height: 45px;
            text-align: center;
            color: #333;
        }

        .navtab .item.active {
            color: #36CA71;
            border-bottom: 2px solid #36CA71;
        }
    </style>
    <style>
        .movie-name {
            font-weight: bolder;
        }

        .movie-summary {
            color: #ccc;
        }

        .movie-description {
            color: #ccc;
        }
    </style>
</head>
<body>
<?php if(is_array($list)): foreach($list as $key=>$val): ?><div class="weui_cell">
    <div class="weui_cell_bd weui_cell_primary">
      <p class="movie-name"><?php echo ($val['uname']); ?></p>
        <p class="movie-summary"><?php echo ($val['uad']); ?></p>
        <b >选择购票<b class="movie-summary">(电影开场前1分钟关闭在线售票)</b></b>
    </div>
</div><?php endforeach; endif; ?>
<div class="navtab">
    <a href="<?php echo U('Screen/index',['time'=>date('md'),'uid'=>$_GET['uid'],'mid'=>$_GET['mid']]);?>"
       class="item <?php echo ($_GET['time']==date('md'))?'active':''; ?>" style="text-decoration:none;">
        今天 <?php echo date('m-d',time());?>
    </a>
    <a href="<?php echo U('Screen/index',['time'=>date('md',strtotime('+1 days')),'uid'=>$_GET['uid'],'mid'=>$_GET['mid']]);?>"
       class="item <?php echo ($_GET['time']==date('md',strtotime('+1 days')))?'active':''; ?>" style="text-decoration:none;">
        明天 <?php echo date('m-d',(time()+3600*24*1));?>
    </a>
    <a href="<?php echo U('Screen/index',['time'=>date('md',strtotime('+2 days')),'uid'=>$_GET['uid'],'mid'=>$_GET['mid']]);?>"
       class="item <?php echo ($_GET['time']==date('md',strtotime('+2 days')))?'active':''; ?>" style="text-decoration:none;">
        后天 <?php echo date('m-d',(time()+3600*24*2));?>
    </a>
    <a href="<?php echo U('Screen/index',['time'=>date('md',strtotime('+3 days')),'uid'=>$_GET['uid'],'mid'=>$_GET['mid']]);?>"
       class="item <?php echo ($_GET['time']==date('md',strtotime('+3 days')))?'active':''; ?>" style="text-decoration:none;">
        本周<?php echo date('N', (time()+3600*24*3));?> <?php echo date('m-d',(time()+3600*24*3));?>
    </a>
</div>
<?php if(is_array($list)): foreach($list as $key=>$val): ?><div class="weui_cell">
        <div class="weui_cell_bd weui_cell_primary">
            <a href="<?php echo U('Seat/index',['uid'=>$val['uid'],'mid'=>$val['mid'],'sid'=>$val['sid'],'spr'=>$val['spr']]);?>" style="text-decoration: none">
                <p class="movie-name"><?php echo date('H:i',$val['stime']);?><span style=" margin-left:85px;color:#D3D3D3;"><?php echo ($val['ml']); ?></span></p>
                <p class="movie-summary" style="color:#D3D3D3;">结束时间:<?php echo date('H:i',$val['stime']+$val['mg']);?><span style=" margin-left:60px;color:#D3D3D3;"><?php echo ($val['rname']); ?></span></p>
            </a>
        </div>
        <div class="weui_cell_ft">
            <div>&yen;<b style="font-size:20px;color:red;"><?php echo ($val['spr']); ?></b></div>
        </div>
    </div><?php endforeach; endif; ?>
<hr/>
</body>
</html>